GBML manual / Constants

BLEND_FADE_UP

A fade toward the top: a see-through thing shows fully at the bottom of the screen and fades away up to the top.

Works differently on Game Boy - A blend look on the Game Boy decides how often a see-through sprite is drawn on each row and fades a see-through picture in bands; see screen_blend.

Works differently on Game Boy Color - A blend look on the Game Boy Color decides how often a see-through sprite is drawn on each row and how much a see-through picture fades; see screen_blend.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BLEND_FADE_UP: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the fade toward the top, for screen_blend. It is BLEND_FADE_DOWN upside down: a see-through thing shows fully on the bottom row of the screen and fades away a little more on every row above it. Fog lying on the ground, and clearing as it rises, is the picture to have in mind.

strength is how far it fades by the first row: 1 leaves about two thirds of it, 2 leaves a little over a third, and 3 fades it away to nothing.

A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_FADE_UP at strength 1, 2 and 3 (the darkness is thickest at the bottom of the screen and fades toward the top, and at strength 3 there is none left at the top)A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_FADE_UP at strength 1, 2 and 3 (the darkness is thickest at the bottom of the screen and fades toward the top, and at strength 3 there is none left at the top)
A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLENDFADEUP at strength 1, 2 and 3 (the darkness is thickest at the bottom of the screen and fades toward the top, and at strength 3 there is none left at the top)

The same picture four times: straight, then strength 1, 2 and 3 from left to right, each one standing still where the pattern had got to. Real pictures from a Game Boy Advance ROM.

This look stands still, so speed does nothing for it.

In a dark room the look keeps the room's own darkness: it is a shape laid on the number you set, so the screen is on average as dark as the room says and the look moves the darkness around (no row is darker than black). In a room that is not dark the look's own numbers are what decide.

Example

shade = background_create(0, 0, ts_doc_dungeon);
background_see_through(shade, true);
background_priority(shade, 0);
screen_blend(BLEND_FADE_UP, 2, 0);

A fog that lies on the ground and thins out as it rises. Call it once, for example when the room starts - it keeps going by itself until you call screen_blend(BLEND_NONE, 0, 0) or a room is loaded.

See also: screen_blendBLEND_NONEBLEND_FADE_DOWN